package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
)

type ChangeNameTransaction struct {
	AbstractTransactions.ChangeEmployeeTransaction
	itsName string
}

func (nt *ChangeNameTransaction)NewChangeNameTransaction(empid int, name string)  {
	nt.ChangeEmployeeTransaction.NewChangeEmployeeTransaction(empid)
	nt.itsName = name
}

func (nt *ChangeNameTransaction) Change(e Model.Employee) {
	e.SetName(nt.itsName)
}
